import request from '@/utils/request'

// 查询库存变动日志列表
export function listStockLogs(query) {
  return request({
    url: '/ruoyi/stockLogs/list',
    method: 'get',
    params: query
  })
}

// 查询库存变动日志详细
export function getStockLogs(logId) {
  return request({
    url: '/ruoyi/stockLogs/' + logId,
    method: 'get'
  })
}

// 新增库存变动日志
export function addStockLogs(data) {
  return request({
    url: '/ruoyi/stockLogs',
    method: 'post',
    data: data
  })
}

// 修改库存变动日志
export function updateStockLogs(data) {
  return request({
    url: '/ruoyi/stockLogs',
    method: 'put',
    data: data
  })
}

// 删除库存变动日志
export function delStockLogs(logId) {
  return request({
    url: '/ruoyi/stockLogs/' + logId,
    method: 'delete'
  })
}
